﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">

    <title>页面设计</title>
    <link href="login/bootstrap.min.css" rel="stylesheet">

</head>
<body style="font-size: 14px; zoom: 1;">

<div id="div1">
    <p>请输入内容...</p>
</div>

...省略其他代码...

<!--引用requirejs，设置 main.js 作为启动项-->
<script data-main="js/main" src="js/require.js"></script>
<script>
    require(['jquery','wangEditor'], function(){
        $(function(){
            var editor = new wangEditor('div1');
            editor.create();
        });
    });
</script>
</body>
